package com.zp.system.service;

import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;
import com.zp.system.entity.bo.SysBaseDictTypeBo;
import com.zp.system.entity.vo.SysBaseDictTypeVo;

import java.util.Collection;
import java.util.List;

/**
 * 字典类型Service接口
 *
 * @author zhang peng
 * @date 2023-01-01
 */
public interface ISysBaseDictTypeService {

    /**
     * 查询字典类型
     */
    SysBaseDictTypeVo queryById (String baseDictId);

    /**
     * 查询字典类型列表(分页)
     */
    TableDataInfo<SysBaseDictTypeVo> queryPageList (SysBaseDictTypeBo bo, PageQuery pageQuery);

    /**
     * 查询字典类型列表(不分页)
     */
    List<SysBaseDictTypeVo> queryList (SysBaseDictTypeBo bo);

    /**
     * 修改字典类型
     */
    Boolean insertByBo (SysBaseDictTypeBo bo);

    /**
     * 修改字典类型
     */
    Boolean updateByBo (SysBaseDictTypeBo bo);

    /**
     * 校验并批量删除字典类型信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);
}
